package org.kailu.book.service;

import java.util.List;

import org.kailu.book.DAO.ExportStationeryDetailsDAO;
import org.kailu.book.entity.ExportStationeryDetailsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ExportStationeryDetailsService {

	@Autowired
	private ExportStationeryDetailsDAO stationeryDetailsDAO;
	
	@Transactional
	public void save(ExportStationeryDetailsEntity exportEntity) {
		this.stationeryDetailsDAO.save(exportEntity);
	}
	
	@Transactional
	public List<ExportStationeryDetailsEntity> getAll() {
		return this.stationeryDetailsDAO.getAll();
	}
	
	@Transactional
	public ExportStationeryDetailsEntity get(int id) {
		return this.stationeryDetailsDAO.get(id);
	}
	
	@Transactional
	public List<ExportStationeryDetailsEntity> getByExportId(int export_id) {
		return this.stationeryDetailsDAO.getByExportID(export_id);
	}
	
	@Transactional
	public void delete(int id) {
		this.stationeryDetailsDAO.delete(id);
	}
	
}
